﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Play.aspx.cs" Inherits="WebPlayer.Play" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=0.9" />
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.custom.js"></script>
    <script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
    <script type="text/javascript" src="js/jjmenu.js"></script>
    <link id="styleLink" runat="server" rel="Stylesheet" type="text/css" href="fixed.css" />
    <link rel="Stylesheet" type="text/css" href="css/jquery-ui-1.8.custom.css" />
    <link rel="Stylesheet" type="text/css" href="js/jjmenu.css" />
    <link rel="Stylesheet" type="text/css" href="css/main.css" />
    <link rel="Stylesheet" type="text/css" href="css/dialogs.css" />
    <script type="text/javascript" src="playercore.js"></script>
    <script type="text/javascript" src="player.js"></script>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/dialogs.js"></script>
</head>
<body onkeydown="globalKey(event);" onload="init();">
    <div id="dialog"></div>
    <form id="playerform" runat="server" defaultbutton="cmdSubmit">
    <asp:ScriptManager ID="ctlScriptManager" runat="server">
    </asp:ScriptManager>
    <div id="gameBorder">
        <div id="status">
            <div id="updating">
                <asp:UpdateProgress ID="ctlUpdateProgress" runat="server">
                    <ProgressTemplate>
                        <img src="updating.gif" alt="Updating..." />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
            <div id="location">
            </div>
        </div>
        <div id="gamePanes">
            <div id="gamePanesRunning">
                <input id="cmdCompassNW" class="compassbutton" type="button" value="&#8598;" title="go northwest"
                    onclick="compassClick(_compassDirs[0]);" />
                <input id="cmdCompassN" class="compassbutton" type="button" value="&#8593;" title="go north"
                    onclick="compassClick(_compassDirs[1]);" />
                <input id="cmdCompassNE" class="compassbutton" type="button" value="&#8599;" title="go northeast"
                    onclick="compassClick(_compassDirs[2]);" />
                <input id="cmdCompassW" class="compassbutton" type="button" value="&#8592;" title="go west"
                    onclick="compassClick(_compassDirs[3]);" />
                <input id="cmdCompassE" class="compassbutton" type="button" value="&#8594;" title="go east"
                    onclick="compassClick(_compassDirs[4]);" />
                <input id="cmdCompassSW" class="compassbutton" type="button" value="&#8601;" title="go southwest"
                    onclick="compassClick(_compassDirs[5]);" />
                <input id="cmdCompassS" class="compassbutton" type="button" value="&#8595;" title="go south"
                    onclick="compassClick(_compassDirs[6]);" />
                <input id="cmdCompassSE" class="compassbutton" type="button" value="&#8600;" title="go southeast"
                    onclick="compassClick(_compassDirs[7]);" />
            </div>
            <div id="gamePanesFinished">
                <h2>Game Over</h2>
                <p>This game has finished.</p>
            </div>
        </div>
        <div id="gameContent">
            <div id="divOutput">
                <h1 id="gameTitle">
                    Loading...</h1>
            </div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:HiddenField ID="fldUIMsg" runat="server" Value="" />
                    <asp:HiddenField ID="fldUITickCount" runat="server" Value="" />
                    <asp:Button ID="cmdSubmit" runat="server" Width="20px" OnClick="cmdSubmit_Click"
                        CssClass="hiddenbutton" />
                    <asp:Timer ID="tmrInit" runat="server" Interval="50" OnTick="InitTimerTick">
                    </asp:Timer>
                </ContentTemplate>
            </asp:UpdatePanel>
            <a id="endWaitLink" onclick="endWait();" class="cmdlink" style="display: none">Click
                here or press a key to continue...</a>
        </div>
    </div>
    </form>
    <div id="msgbox" title="Question">
        <p id="msgboxCaption">
        </p>
    </div>
    <div id="jquery_jplayer" style="width: 0; height: 0">
    </div>
    <div id="audio_embed">
    </div>
</body>
</html>
